import logging
import yagmail
def log_set():
    logging.basicConfig(level=logging.DEBUG,format='%(asctime)s-%(msecs)d-%(process)d',filename='log.txt')
def send_email(a):
    mail=yagmail.SMTP(user='2291385879@qq.com',password='vdsuyyqeqkbtdjhf',host='smtp.qq.com')
    mail.send(to='2291385879@qq.com',subject='测试用例',contents='测试用例',attachments=a)